const path = require('path');
const HTMLWebpackPlugin = require('html-webpack-plugin');

module.exports = {
  mode: 'none',
  entry: './src/main.js',
  
  output: {
    path: path.resolve(__dirname, 'dist'),
    filename: 'bundle.js',
    assetModuleFilename: 'images/[hash][ext][query]'
  },
  
  plugins: [
    new VueLoaderPlugin(),
    new HTMLWebpackPlugin({
      template: 'index.html'
    })
  ],
  resolve:{
    extensions:[".js",".vue",".json"],
    alias:{
        vue$:"vue/dist/vue.js",
    },
  }
  ,
  module: {




    
    rules: [
      {
        test: /\.css$/i,
        use: ['style-loader', 'css-loader']
      },
      
      {
        test: /\.(png|svg|jpg|gif)$/i,
        type: 'asset/resource'
      },
      
      {
        test: /\.less$/i,
        use: [
          'style-loader',
          'css-loader',
          'less-loader'
        ]
      }
    ]
  }
};